package com.wan.service.impl;

import com.wan.dao.CompetitionTypeMapper;
import com.wan.entity.CompetitionType;
import com.wan.service.CompetitionTypeService;
import com.wan.vo.CompetitionTypeVo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class CompetitionTypeServiceImpl implements CompetitionTypeService {

    @Resource
    private CompetitionTypeMapper competitionTypeMapper;

    /**
     * 查询比赛报名列表
     * @param competitionTypeVo
     * @return
     */
    @Override
    public List<CompetitionType> findCompetitionTypeList(CompetitionTypeVo competitionTypeVo) {
        return competitionTypeMapper.findCompetitionTypeList(competitionTypeVo);
    }

    @Override
    public int addCompetitionType(CompetitionType competitionType) {
        return competitionTypeMapper.addCompetitionType(competitionType);
    }

    @Override
    public int updateCompetitionType(CompetitionType competitionType) {
        return competitionTypeMapper.updateCompetitionType(competitionType);
    }
}
